/**************************************************************************************************
|
| EmbedMAX - Video Embed Script
| http://www.isoftscripts.com
| webmaster@isoftscripts.com
| Version: 1.0
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.isoftscripts.com/embedmax-eula.html and to be bound by it.
|
| Copyright (c) 2008 iSoftScripts.com. All rights reserved.
|**************************************************************************************************/


These are the steps for installing a new language, we will be doing an example for French.

1. Convert one of the provided languages in the include/lang folder (english or spanish) into French, naming the newly converted language french.php


2. Open include/config.php

Find:
elseif ($_REQUEST['language'] == "spanish")

Add Above:
elseif ($_REQUEST['language'] == "french")
	{
		SESSION_REGISTER("language");
		$_SESSION[language] = "french";
	}


Find:
elseif ($_SESSION['language'] == "spanish")

Add Above:
elseif ($_SESSION['language'] == "french")
{
include("lang/french.php");
}


3. Open themes/default/header.tpl

Find:
	    <td>
                <form name="langselectes" id="langselectes" method="post">
                <INPUT type=image value="spanish" src="{$imageurl}/es.png" height="11px" style="height:11px;padding:0; margin:0; border:0;" border="0" name="language"><input type="hidden" name="language" id="language" value="spanish" />
                </form>
            </td>

Add After:
	    <td>
                <form name="langselectes" id="langselectes" method="post">
                <INPUT type=image value="french" src="{$imageurl}/fr.png" height="11px" style="height:11px;padding:0; margin:0; border:0;" border="0" name="language"><input type="hidden" name="language" id="language" value="french" />
                </form>
            </td>



4. You will need to get a small png image of the french flag, name it fr.png, and upload it to the images folder.


The french language would now be installed.